/**
 * 
 */
package com.wsd.service.impl;

import java.util.List;

import com.wsd.bean.ProductComment;
import com.wsd.dao.ProductCommentDaoInterface;
import com.wsd.service.CommentService;

/**
 * @author Administrator
 *
 */
public class CommentServiceImpl implements CommentService {
	private ProductCommentDaoInterface productCommentDAO;
	

	public ProductCommentDaoInterface getProductCommentDAO() {
		return productCommentDAO;
	}

	public void setProductCommentDAO(ProductCommentDaoInterface productCommentDAO) {
		this.productCommentDAO = productCommentDAO;
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.CommentService#deleteById(int)
	 */
	public void deleteById(int id) {
		productCommentDAO.deleteById(id);
		
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.CommentService#findAll(int, int)
	 */
	public List<ProductComment> findAll(int start, int limit) {
		return productCommentDAO.findAll(start, limit);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.CommentService#findAllCount()
	 */
	public int findAllCount() {
		return productCommentDAO.findAllCount();
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.CommentService#findById(java.lang.Integer)
	 */
	public ProductComment findById(Integer id) {
		
		return productCommentDAO.findById(id);
	}

	/* (non-Javadoc)
	 * @see com.wsd.service.CommentService#saveReplay(com.wsd.bean.ProductComment)
	 */
	public void saveReplay(ProductComment replay) {
		productCommentDAO.save(replay);
	}
}
